package com.ziyun.erp.modules.quoteProduct.vo;

import io.swagger.models.auth.In;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 商品属性vo
 * @author zh
 * @date 2018/9/611:07
 */
@Getter
@Setter
public class QuoteAttributeOptionVo {

    /*是否选中*/
    private Boolean selected;

    /*属性id*/
    private Integer id;

    /*属性名称*/
    private String attributeName;

    private String optionKey;

    private String optionName;

    private String attributeTypeValue;

    /*材料默认克重*/
    private Integer materialDefaultOptionName2;

    /*一般选项列表 normal craft*/
    private List<Map<String,Object>> normalOptionList;

    /*一般选项选中列表*/
    private List<Integer> normalSelectedOptionList;

    /*一般选项默认值*/
    private Integer normalDefaultOption;

    /*一般选项选中列表模板*/
    private List<Map<String,Object>> normalSelectedTempOptionList;

    /*材料选项列表*/
    private List<Map<String,Object>> materialOptionList;

    /*材料选中选项列表*/
    private List<Integer> materialSelectedOptionList;


    public List<Integer> getNormalSelectedOptionList() {
        if(normalSelectedOptionList == null){
            return new ArrayList<Integer>();
        }else {
            return normalSelectedOptionList;
        }
    }

    public List<Map<String, Object>> getNormalSelectedTempOptionList() {
        if(normalSelectedTempOptionList == null){
            return new ArrayList<Map<String, Object>>();
        }else {
            return normalSelectedTempOptionList;
        }
    }

    public List<Integer> getMaterialSelectedOptionList() {
        if(materialSelectedOptionList == null){
            return new ArrayList<Integer>();
        }else {
            return materialSelectedOptionList;
        }
    }

}
